spreate by captial char in c#

55

spreate by captial char in c# -

private string ToUppercase(string input) {
    var regex = new Regex(@"(?<=[A-Z])(?=[A-Z][a-z])|(?<=[^A-Z])(?=[A-Z])");
    return regex.Replace(input, " ");
}

Comments

Submit
0 Comments